package com.g8.pethospitallearnbackend.entity;

import java.io.Serializable;

public class Disease implements Serializable {
    private String diseaseId;

    private String typeId;

    private String diseaseName;

    private String diseaseDesc;

    private String diseaseTreat;

    private String diseasePic;

    private String diseaseVideo;

    private static final long serialVersionUID = 1L;

    public String getDiseaseId() {
        return diseaseId;
    }

    public void setDiseaseId(String diseaseId) {
        this.diseaseId = diseaseId;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getDiseaseName() {
        return diseaseName;
    }

    public void setDiseaseName(String diseaseName) {
        this.diseaseName = diseaseName;
    }

    public String getDiseaseDesc() {
        return diseaseDesc;
    }

    public void setDiseaseDesc(String diseaseDesc) {
        this.diseaseDesc = diseaseDesc;
    }

    public String getDiseaseTreat() {
        return diseaseTreat;
    }

    public void setDiseaseTreat(String diseaseTreat) {
        this.diseaseTreat = diseaseTreat;
    }

    public String getDiseasePic() {
        return diseasePic;
    }

    public void setDiseasePic(String diseasePic) {
        this.diseasePic = diseasePic;
    }

    public String getDiseaseVideo() {
        return diseaseVideo;
    }

    public void setDiseaseVideo(String diseaseVideo) {
        this.diseaseVideo = diseaseVideo;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", diseaseId=").append(diseaseId);
        sb.append(", typeId=").append(typeId);
        sb.append(", diseaseName=").append(diseaseName);
        sb.append(", diseaseDesc=").append(diseaseDesc);
        sb.append(", diseaseTreat=").append(diseaseTreat);
        sb.append(", diseasePic=").append(diseasePic);
        sb.append(", diseaseVideo=").append(diseaseVideo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Disease other = (Disease) that;
        return (this.getDiseaseId() == null ? other.getDiseaseId() == null : this.getDiseaseId().equals(other.getDiseaseId()))
            && (this.getTypeId() == null ? other.getTypeId() == null : this.getTypeId().equals(other.getTypeId()))
            && (this.getDiseaseName() == null ? other.getDiseaseName() == null : this.getDiseaseName().equals(other.getDiseaseName()))
            && (this.getDiseaseDesc() == null ? other.getDiseaseDesc() == null : this.getDiseaseDesc().equals(other.getDiseaseDesc()))
            && (this.getDiseaseTreat() == null ? other.getDiseaseTreat() == null : this.getDiseaseTreat().equals(other.getDiseaseTreat()))
            && (this.getDiseasePic() == null ? other.getDiseasePic() == null : this.getDiseasePic().equals(other.getDiseasePic()))
            && (this.getDiseaseVideo() == null ? other.getDiseaseVideo() == null : this.getDiseaseVideo().equals(other.getDiseaseVideo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDiseaseId() == null) ? 0 : getDiseaseId().hashCode());
        result = prime * result + ((getTypeId() == null) ? 0 : getTypeId().hashCode());
        result = prime * result + ((getDiseaseName() == null) ? 0 : getDiseaseName().hashCode());
        result = prime * result + ((getDiseaseDesc() == null) ? 0 : getDiseaseDesc().hashCode());
        result = prime * result + ((getDiseaseTreat() == null) ? 0 : getDiseaseTreat().hashCode());
        result = prime * result + ((getDiseasePic() == null) ? 0 : getDiseasePic().hashCode());
        result = prime * result + ((getDiseaseVideo() == null) ? 0 : getDiseaseVideo().hashCode());
        return result;
    }
}